package main

import "fmt"

func Gg1() {
	var slice1 = []int{1, 2, 3, 4, 5}
	// 在切片里面嵌套切片
	var slice2 = [][]int{[]int{1, 2}, []int{3, 4}}
	//在切片里面嵌套数组
	var slice3 = [][2]int{[2]int{11, 22}, [2]int{33, 44}}

	fmt.Println(slice1)
	fmt.Println(slice2)
	fmt.Println(slice3)

	slice1[0] = 100
	slice2[0][0] = 101
	slice3[0][1] = 102

	fmt.Println(slice1)
	fmt.Println(slice2)
	fmt.Println(slice3)
}
